package com.wangshidai.form.rolefrom;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(description = "分页对象")
public class Paging {
    //每页数据条数
    @ApiModelProperty(name = "size",value="每页数据条数",example="1")
    @Min(value = 1,message = "每页数据条数必须大于0")
    protected long size=10;
    //当前是第几页
    @ApiModelProperty(name = "current",value="当前页数",example="1")
    @Min(value = 1,message = "当前页数必须大于0")
    protected long current=1;
}
